<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=no">
    <meta name="referrer" content="origin">
    <title>日新网 - 课程培训</title>
    <link rel="stylesheet" href="__TMPL__Public/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="__TMPL__Public/assets/css/reset.css">
    <link rel="stylesheet" href="__TMPL__Public/assets/css/style.css">
    <script type="text/javascript" src="__TMPL__Public/assets/js/rem.js"></script>
</head>
<style>
    .carousel ,.carousel-inner{
        height: 4rem;
    }
    .carousel-inner .item {
        height: 4rem;

    }
    .carousel-inner .item img {
        width: 100% !important;
        height: 100%!important;
    }
    .tab_content h3 {
        font-size: .26rem;
        color: #000232;
        margin: 0 0 .2rem .3rem;
        padding-top: .3rem;
    }
    /*学院样式*/
</style>
<body>
<!--nav-->
<tc_include file="Public:nav"/>
<!--轮播图-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <php>
        $slide_imgs = get_slide_show_by_position(13, 0, 3);
    </php>
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <volist name="slide_imgs" id="vo">
            <li data-target="#carousel-example-generic" data-slide-to="{$key}" class="{$key == 0 ? 'active' : ''}"></li>
        </volist>
    </ol>
    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
        <volist name="slide_imgs" id="vo">
            <div class="item {$key == 0 ? 'active' : ''}">
                <img src="{:sp_get_asset_upload_path($vo['img'])}" alt="...">
            </div>
        </volist>
    </div>
    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>
<!--學院-->
<div class="college_index">
    <!--tab图标-->
    <!--<div class="tab clearfix">-->
        <!--<div class="tab1 fl">-->
            <!--<a href="#tab1">-->
                <!--<div class="bgc">-->
                    <!--<img src="/public/images/img/curriculum.png" alt=""> <br>-->
                    <!--<span>专题课程</span>-->
                <!--</div>-->
            <!--</a>-->
        <!--</div>-->
        <!--<div class="tab2 fr">-->
            <!--<a href="#tab2">-->
                <!--<div class="bgc">-->
                    <!--<img src="/public/images/img/inquiry.png" alt=""> <br>-->
                    <!--<span>专享咨询</span>-->
                <!--</div>-->
            <!--</a>-->
        <!--</div>-->
    <!--</div>-->
    <!--专题课程-->
    <div class="title clearfix" id="tab1">
        <h3>专题课程</h3>
    </div>
    <div class="curriculum">
        <volist name="lesson_subjects" id="vo">
            <div class="curriculum_item">
                <div class="img-ground">
                    <a href="{:U('Lesson/Lesson/lesson_list', ['subject_id' => $vo['id']])}">
                        <img src="{:sp_get_asset_upload_path($vo['subject_img'])}" alt="">
                    </a>
                </div>
                <div class="text">
                    <h4 class="ellipsis2">{$vo.subject_name}</h4>
                    <p class="money">￥<span>{$vo.subject_price}</span></p>
                    <p class="text_content ellipsis6">{$vo.subject_desc}</p>
                </div>
            </div>
        </volist>
    </div>
    <!--专享咨询-->
    <!--<div class="title clearfix" id="tab2">-->
        <!--<h3>专享咨询</h3>-->
    <!--</div>-->
    <div class="inquiry">
        <volist name="profess_lists" id="vo">
            <div class="inquiry_item">
                <div class="img-ground">
                    <a href="{:U('User/Index/professor_homepage', ['professor_id' => $vo['user_id']])}">
                        <img src="{:sp_get_user_avatar_url($vo['avatar'])}" alt="">
                    </a>
                </div>
                <div class="text">
                    <p class="name">{$vo.user_nicename}</p>
                    <p class="text_content ellipsis2">{$vo.signature}</p>
                </div>
            </div>
        </volist>
    </div>
</div>
<!--页脚-->
<tc_include file="Public:footer"/>

<script type="text/javascript" src="__TMPL__Public/assets/js/jquery.1.12.4.js"></script>
<script src="__TMPL__Public/assets/js/bootstrap.min.js"></script>
<script>
    // 快讯展开收起效果
    $(document).ready(function () {
        $('.news_item').click(function () {
            $(this).find('.text2').slideToggle("fast");
        })
    })
</script>
<!--tab页切换效果-->
<script>
    (function () {
        $("#tab_nav ul li").on("click", function () {
            $("#tab_nav ul li").removeClass("active");
            $(this).addClass("active");
        });
    })();
</script>
<script>
    $(function () {
        $(".picture_ground").each(function (index,value) {
            var num = $(value).children().length;
            if(num >=6){
                $(value).find(".last_item").css("display","block");
            }

        })
    })
</script>
<script src="/public/slow_img/checkImg.js"></script>
<script>
    // 图片加载优化
    $(function () {
        checkImgs();
        window.onscroll = throttle(checkImgs);
    });
</script>
</body>
</html>